# score=int(input('请输入你的成绩：'))
# print(type(score))
#
# print('你的成绩是：',score)
#
# # score_float=float(score)
# result=score>80
# print(type(result))
# print("是否大于80分",result)

# name='小明'
# age='12'
# print(name+'今年'+age+'岁。')
#
# a=input('请输入算式：')
# print(eval(a))

# # 字符串格式化
# name='小倩'
# mathd=88
# yuwen=90
# english=88
# avg_score=(mathd+yuwen+english)/3
# percent=0.761224
# # 方法一
# fomart_str='%s 的数学成绩是%d，语文成绩是%d，外语成绩是%d，平均成绩是%.2f，超过班上%d%%的同学'%(name,mathd,yuwen,english,avg_score,percent*100)
# # print(fomart_str)
#
# # 方法二
# fomart_str1='{} 的数学成绩是{}，语文成绩是{}，外语成绩是{}，平均成绩是{:.2f},超过班上{}%的同学'.format(name,mathd,yuwen,english,avg_score,percent*100)
# fomart_str2='{} 的数学成绩是{}，语文成绩是{}，外语成绩是{}，平均成绩是{:.2f},超过班上{:.2%}的同学'.format(name,mathd,yuwen,english,avg_score,percent)
# print(fomart_str2)
#
# # 方法三
# fomart_str3=f'{name} 的数学成绩是{mathd}，语文成绩是{yuwen}，外语成绩是{english}，平均成绩是{avg_score:.2f},超过班上{percent:.2%}的同学'
# print(fomart_str3)

# score=int(input("请输入你的成绩："))
# # 判断
# if score>=60:
#     print('合格！')
# else:
#     print('不合格！')

# score=int(input("请输入一个数："))
# # 判断
# if score>0:
#     print('正数')
# elif score<0:
#     print('负数')
# else:
#     print('0')

# 根据输入的成绩判断优良中差
# score=int(input("请输入成绩："))
# 判断
# if score<60:
#     print('差')
# elif score<70:
#     print('中')
# elif score<80:
#     print('良')
# else:
#     print('优')

# if score>=80 and score<=100:
#     print('优')
#     if score>90:
#         print('棒棒哒！')
#     else:
#         print('冲鸭！')
# elif score>=70 and score<=80:
#     print('良')
# elif score>=60 and score<=70:
#     print('中')
# elif score>=0 and score<=60:
#     print('差')
# else:
#     print('请输入正确的成绩！')
# a=0
# while a<=10:
#     a+=1
#     if a%2==0:
#         print(a)
# a=0
# while True:
#     a+=1
#     if a<=10:
#         if a%2==0:
#             print(a)
#     else:
#         break

# 输入用户的账号、密码，判断账号密码是否正确，如果输入错误在提示后能继续输入。
# 只能输入错误3次

# u='admin'
# p='123456'
# a=0
# while True:
#     user = input('请输入账号：')
#     pwd = input('请输入密码：')
#     if user==u and pwd==p:
#         print('账号密码输入正确。')
#         break
#     elif user!=u:
#         print('用户名错误！')
#     elif user==u and pwd!=p:
#         print('密码错误！')
#         a+=1
#     if a>2:
#         print('密码输入错误超过三次')
#         break

a=[1,23,4,5,68,8]
num=int(input('输入：'))

for i in range(len(a)):
    if num==a[i]:
        print(f'下标是{i}',f'对应的值是{a[i]}')
        break
else:
    print('未注册')
#
# for i in range(1,4):
#     print(i)
#
# for b in range(1,11,2):
#     print(b)

# for b in range(10,2,-3):
#     print(b)











